<#-- 导入模版定义文件-->
<#include "../template/template_editPage.ftl">
<@edit title="管理系统">
	<body class="input">
	<script type="text/javascript">
	$().ready( function() {
	
		var $oldpwd = $("#oldpwd");
		var $newpwd = $("#newpwd");
		var $repwd = $("#repwd");
	
		// 提交表单验证
		$("#inputForm").submit( function() {
			if ($oldpwd.val() == "") {
			    jBox.alert("请输入您旧密码!","警告");
				return false;
			}
			if ($newpwd.val() == "") {
				jBox.alert("请输入您的新密码!","警告");
				return false;
			}
			if ($repwd.val() == "") {
			 	jBox.alert("请输入您的确认新密码!","警告");
				return false;
			}	
			if ($repwd.val() != $newpwd.val()) {
				jBox.alert("两次密码输入不一致!","警告");
				return false;
			}	
			
		});
	    <#if actionMessages??&&(actionMessages?size > 0)>
	        jBox.alert("<#list actionMessages as message>${message}<br></#list>","警告");
		</#if>
		<#if actionErrors??&&(actionErrors?size > 0)>
			jBox.alert("<#list errorMessages as list>${list}<br></#list>","警告");
		</#if>
	});
	</script>
		<div class="body">
			<div class="inputBar">
				<h1><span class="icon">&nbsp;</span>修改密码</h1>
			</div>
			<form id="inputForm" class="validate" action="${web_base}/system/admin!pwd.htm" method="post">
				<table class="inputTable tabContent">
					<tr>
						<th>
							旧密码:
						</th>
						<td>
							<input type="password" name="operator.pwd" id="oldpwd" class="formText" value="" />
							<label class="requireField">*</label>
						</td>
					</tr>
					<tr>
						<th>
							新密码:
						</th>
						<td>
							<input type="password" name="operator.newPwd" id="newpwd" class="formText" value="" />
							<label class="requireField">*</label>
						</td>
					</tr>
					<tr>
						<th>
							确认新密码:
						</th>
						<td>
							<input type="password" id="repwd" class="formText" value="" />
							<label class="requireField">*</label>
						</td>
					</tr>
				</table>
				<div class="buttonArea">
					<input type="submit" class="formButton" value="确  定" hidefocus="true" />&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回" hidefocus="true" />
				</div>
			</form>
		</div>
	</body>
</@edit>